package com.yuand.service.impl;

import com.yuand.entity.SysPermission;
import com.yuand.mapper.SysPermissionMapper;
import com.yuand.service.SysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuandong
 * @since 2021-08-06
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

    @Autowired
    private SysPermissionMapper permissionMapper;


    @Override
    public List<SysPermission> selectPermissionsByUserId(int userId) {
        return this.permissionMapper.selectPermissionsByUserId(userId);
    }
}
